<template>
  <div class="body">
    <el-form :inline="true" label-width="80px">
      <el-form-item label="地址">
        <el-row :gutter="20">
        <el-col :span="4">
          <el-select v-model="separateaddress.first" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-col>
        <el-col :span="4">
          <el-select v-model="separateaddress.second" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option> </el-select
        ></el-col>
        <el-col :span="4">
          <el-select v-model="separateaddress.third" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option> </el-select
        ></el-col>
        <el-col :span="4"
          ><el-select v-model="separateaddress.fourth" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option> </el-select
        ></el-col>
        <el-col :span="8">
          <el-input v-model="detailaddress" placeholder="请输入详细地址"></el-input
        ></el-col>
        </el-row>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "Address",
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {
      detailaddress: "",
      separateaddress: {
        first:'',
        second:'',
        third:'',
        fourth:''
      },
    };
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  // 生命周期 - 创建之前
  beforeCreate() {},
  //生命周期 - 挂载之前
  beforeMount() {},
  //生命周期 - 更新之前
  beforeUpdate() {},
  //生命周期 - 更新之后
  updated() {},
  //生命周期 - 销毁之前
  beforeDestroy() {},
  //生命周期 - 销毁完成
  destroyed() {},
};
</script>
<style lang='css' scoped>
/*@import url(); 引入公共css类*/
.body {
    margin-top: 20px;
    padding-left: 10px;
    white-space: nowrap;
}
 .el-row {
    margin-bottom: 20px;
 }
</style>